package org.test.service;

import org.test.vo.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {

    //添加图书到购物车
     int addBookToShoppingCart(int id,int bookid,String bookname,int booknum);

     //根据图书编号查询购物车
     ShoppingCart selectShoppingByBook(int id,int bookid);

     //根据购物车编号更新该条记录的图书数量
     int addBooknumToShoppingCart(int cartid,int booknum);

     //查找所有图书，返回list
     List<ShoppingCart> selectShoppingCartAll(int id);

   /* ShoppingCart selectShoppingCartAllBook(int id);*/

    //删除购物车
    void deleteShoppingCart(int cartid);
}
